package com.jz.pay.dao;


import com.jz.commom.api.dto.request.Payment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PaymentDao {
    int create(Payment payment);

    int createNew(@Param("tableName") String tableName, @Param("dto") Payment payment);

    @Deprecated
    List<Payment> query(Payment payment);

    List<Payment> query(@Param("tableName") String tableName, @Param("dto") Payment payment);

    //     Payment getPaymentById(Long id);
    Payment getPaymentById(@Param("id") Long id);
}
